Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
font-awesome
Advanced tools
The font-awesome npm package provides a convenient way to incorporate Font Awesome icons into web projects. Font Awesome is a popular icon set and toolkit that includes scalable vector icons that can be customized with CSS. It can be used in web design and development to enhance the user interface with icons for various purposes such as social media, UI controls, branding, and more.
Adding Icons
This code sample demonstrates how to add a camera retro icon from Font Awesome into HTML. The 'fa' and 'fa-camera-retro' classes are used to apply the specific icon's styles.
<i class='fa fa-camera-retro'></i>
Size Customization
This code sample shows how to customize the size of an icon using the 'fa-lg' class for a larger size. Font Awesome provides additional classes like 'fa-2x', 'fa-3x', etc., to further adjust the icon size.
<i class='fa fa-camera-retro fa-lg'></i>
Animated Icons
This code sample illustrates how to create an animated spinning icon using the 'fa-spin' class. Font Awesome also offers the 'fa-pulse' class for a pulsing animation effect.
<i class='fa fa-spinner fa-spin'></i>
Stacked Icons
This code sample demonstrates how to stack icons on top of each other using the 'fa-stack' class. The 'fa-stack-1x' and 'fa-stack-2x' classes are used to layer the icons, and 'fa-inverse' is used to invert the color of the top icon.
<span class='fa-stack fa-lg'><i class='fa fa-square fa-stack-2x'></i><i class='fa fa-twitter fa-stack-1x fa-inverse'></i></span>
Material Icons are a set of icons from Google's Material Design language. They offer a different aesthetic compared to Font Awesome and are often used in material design themed applications.
Ionicons is an open-sourced icon set created by the Ionic Framework team. It provides a collection of icons for use in web, iOS, Android, and desktop applications. Ionicons have a distinct style and are optimized for mobile apps.
Glyphicons is a library of precisely prepared monochromatic icons and symbols, created with an emphasis on simplicity and easy orientation. They were commonly used in Bootstrap 3 but have since been replaced by Font Awesome in Bootstrap 4 for its larger set of icons and more flexible features.
Font Awesome is a full suite of 675 pictographic icons for easy scalable vector graphics on websites, created and maintained by Dave Gandy. Stay up to date with the latest release and announcements on Twitter: @fontawesome.
Get started at http://fontawesome.io!
Font Awesome by Dave Gandy - http://fontawesome.io
Please read through our contributing guidelines. Included are directions for opening issues, coding standards, and notes on development.
Font Awesome will be maintained under the Semantic Versioning guidelines as much as possible. Releases will be numbered with the following format:
<major>.<minor>.<patch>
And constructed with the following guidelines:
For more information on SemVer, please visit http://semver.org.
To include as a component, just run
$ component install FortAwesome/Font-Awesome
Or add
"FortAwesome/Font-Awesome": "*"
to the dependencies
in your component.json
.
Before you can build the project, you must first have the following installed:
sudo apt-get install ruby-dev
(Only if you're NOT using rbenv
or rvm
)gem install bundler
to install).npm install -g less
to install).npm install -g less-plugin-clean-css
to install).From the root of the repository, install the tools used to develop.
$ bundle install
$ npm install
Build the project and documentation:
$ bundle exec jekyll build
Or serve it on a local server on http://localhost:7998/Font-Awesome/:
$ bundle exec jekyll -w serve
FAQs
The iconic font and CSS framework
We found that font-awesome demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.